package com.jshoperxms.entity;

import javax.persistence.*;

/**
 * Created by sdywcd on 2018/9/29.
 * Des:
 */
@Entity
@Table(name = "yd_record_rd_t", schema = "jshoperxms", catalog = "")
public class YdRecordRdT {
    private String id;
    private String fileurl;
    private String status;
    private long createtime;
    private String creatorid;
    private long updatetime;
    private int versiont;
    private String filetype;
    private int duration;
    private int gbiaoyang;
    private int gleafs;
    private int gscore;
    private int gruntimecount;
    private int gsharecount;
    private String filebgimg;
    private String filerparticlesid;
    private String filerpvideosid;
    private String authornick;
    private String authorheadimg;
    private String wxopenid;
    private int currentpublishcount;
    private String title;
    private String defaultduration;
    private String ispublic;
    private int gcomment;
    private String teamcategory;
    private String teamcategoryid;
    private String recommend;
    private String followupreading;
    private String followuprdid;
    private String memberid;
    private String teamid;
    private String rdcategoryid;
    private String rdcategoryname;

    @Id
    @Column(name = "ID", nullable = false, length = 25)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "FILEURL", nullable = false, length = 500)
    public String getFileurl() {
        return fileurl;
    }

    public void setFileurl(String fileurl) {
        this.fileurl = fileurl;
    }

    @Basic
    @Column(name = "STATUS", nullable = false, length = 1)
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Basic
    @Column(name = "CREATETIME", nullable = false)
    public long getCreatetime() {
        return createtime;
    }

    public void setCreatetime(long createtime) {
        this.createtime = createtime;
    }

    @Basic
    @Column(name = "CREATORID", nullable = false, length = 25)
    public String getCreatorid() {
        return creatorid;
    }

    public void setCreatorid(String creatorid) {
        this.creatorid = creatorid;
    }

    @Basic
    @Column(name = "UPDATETIME", nullable = false)
    public long getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(long updatetime) {
        this.updatetime = updatetime;
    }

    @Basic
    @Column(name = "VERSIONT", nullable = false)
    public int getVersiont() {
        return versiont;
    }

    public void setVersiont(int versiont) {
        this.versiont = versiont;
    }

    @Basic
    @Column(name = "FILETYPE", nullable = false, length = 45)
    public String getFiletype() {
        return filetype;
    }

    public void setFiletype(String filetype) {
        this.filetype = filetype;
    }

    @Basic
    @Column(name = "DURATION", nullable = false)
    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    @Basic
    @Column(name = "GBIAOYANG", nullable = false)
    public int getGbiaoyang() {
        return gbiaoyang;
    }

    public void setGbiaoyang(int gbiaoyang) {
        this.gbiaoyang = gbiaoyang;
    }

    @Basic
    @Column(name = "GLEAFS", nullable = false)
    public int getGleafs() {
        return gleafs;
    }

    public void setGleafs(int gleafs) {
        this.gleafs = gleafs;
    }

    @Basic
    @Column(name = "GSCORE", nullable = false)
    public int getGscore() {
        return gscore;
    }

    public void setGscore(int gscore) {
        this.gscore = gscore;
    }

    @Basic
    @Column(name = "GRUNTIMECOUNT", nullable = false)
    public int getGruntimecount() {
        return gruntimecount;
    }

    public void setGruntimecount(int gruntimecount) {
        this.gruntimecount = gruntimecount;
    }

    @Basic
    @Column(name = "GSHARECOUNT", nullable = false)
    public int getGsharecount() {
        return gsharecount;
    }

    public void setGsharecount(int gsharecount) {
        this.gsharecount = gsharecount;
    }

    @Basic
    @Column(name = "FILEBGIMG", nullable = false, length = 500)
    public String getFilebgimg() {
        return filebgimg;
    }

    public void setFilebgimg(String filebgimg) {
        this.filebgimg = filebgimg;
    }

    @Basic
    @Column(name = "FILERPARTICLESID", nullable = false, length = 25)
    public String getFilerparticlesid() {
        return filerparticlesid;
    }

    public void setFilerparticlesid(String filerparticlesid) {
        this.filerparticlesid = filerparticlesid;
    }

    @Basic
    @Column(name = "FILERPVIDEOSID", nullable = false, length = 25)
    public String getFilerpvideosid() {
        return filerpvideosid;
    }

    public void setFilerpvideosid(String filerpvideosid) {
        this.filerpvideosid = filerpvideosid;
    }

    @Basic
    @Column(name = "AUTHORNICK", nullable = false, length = 100)
    public String getAuthornick() {
        return authornick;
    }

    public void setAuthornick(String authornick) {
        this.authornick = authornick;
    }

    @Basic
    @Column(name = "AUTHORHEADIMG", nullable = false, length = 500)
    public String getAuthorheadimg() {
        return authorheadimg;
    }

    public void setAuthorheadimg(String authorheadimg) {
        this.authorheadimg = authorheadimg;
    }

    @Basic
    @Column(name = "WXOPENID", nullable = false, length = 45)
    public String getWxopenid() {
        return wxopenid;
    }

    public void setWxopenid(String wxopenid) {
        this.wxopenid = wxopenid;
    }

    @Basic
    @Column(name = "CURRENTPUBLISHCOUNT", nullable = false)
    public int getCurrentpublishcount() {
        return currentpublishcount;
    }

    public void setCurrentpublishcount(int currentpublishcount) {
        this.currentpublishcount = currentpublishcount;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        YdRecordRdT that = (YdRecordRdT) o;

        if (createtime != that.createtime) return false;
        if (updatetime != that.updatetime) return false;
        if (versiont != that.versiont) return false;
        if (duration != that.duration) return false;
        if (gbiaoyang != that.gbiaoyang) return false;
        if (gleafs != that.gleafs) return false;
        if (gscore != that.gscore) return false;
        if (gruntimecount != that.gruntimecount) return false;
        if (gsharecount != that.gsharecount) return false;
        if (currentpublishcount != that.currentpublishcount) return false;
        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (fileurl != null ? !fileurl.equals(that.fileurl) : that.fileurl != null) return false;
        if (status != null ? !status.equals(that.status) : that.status != null) return false;
        if (creatorid != null ? !creatorid.equals(that.creatorid) : that.creatorid != null) return false;
        if (filetype != null ? !filetype.equals(that.filetype) : that.filetype != null) return false;
        if (filebgimg != null ? !filebgimg.equals(that.filebgimg) : that.filebgimg != null) return false;
        if (filerparticlesid != null ? !filerparticlesid.equals(that.filerparticlesid) : that.filerparticlesid != null)
            return false;
        if (filerpvideosid != null ? !filerpvideosid.equals(that.filerpvideosid) : that.filerpvideosid != null)
            return false;
        if (authornick != null ? !authornick.equals(that.authornick) : that.authornick != null) return false;
        if (authorheadimg != null ? !authorheadimg.equals(that.authorheadimg) : that.authorheadimg != null)
            return false;
        if (wxopenid != null ? !wxopenid.equals(that.wxopenid) : that.wxopenid != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (fileurl != null ? fileurl.hashCode() : 0);
        result = 31 * result + (status != null ? status.hashCode() : 0);
        result = 31 * result + (int) (createtime ^ (createtime >>> 32));
        result = 31 * result + (creatorid != null ? creatorid.hashCode() : 0);
        result = 31 * result + (int) (updatetime ^ (updatetime >>> 32));
        result = 31 * result + versiont;
        result = 31 * result + (filetype != null ? filetype.hashCode() : 0);
        result = 31 * result + duration;
        result = 31 * result + gbiaoyang;
        result = 31 * result + gleafs;
        result = 31 * result + gscore;
        result = 31 * result + gruntimecount;
        result = 31 * result + gsharecount;
        result = 31 * result + (filebgimg != null ? filebgimg.hashCode() : 0);
        result = 31 * result + (filerparticlesid != null ? filerparticlesid.hashCode() : 0);
        result = 31 * result + (filerpvideosid != null ? filerpvideosid.hashCode() : 0);
        result = 31 * result + (authornick != null ? authornick.hashCode() : 0);
        result = 31 * result + (authorheadimg != null ? authorheadimg.hashCode() : 0);
        result = 31 * result + (wxopenid != null ? wxopenid.hashCode() : 0);
        result = 31 * result + currentpublishcount;
        return result;
    }

    @Basic
    @Column(name = "TITLE", nullable = false, length = 500)
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Basic
    @Column(name = "DEFAULTDURATION", nullable = false, length = 45)
    public String getDefaultduration() {
        return defaultduration;
    }

    public void setDefaultduration(String defaultduration) {
        this.defaultduration = defaultduration;
    }

    @Basic
    @Column(name = "ISPUBLIC", nullable = false, length = 2)
    public String getIspublic() {
        return ispublic;
    }

    public void setIspublic(String ispublic) {
        this.ispublic = ispublic;
    }

    @Basic
    @Column(name = "GCOMMENT", nullable = false)
    public int getGcomment() {
        return gcomment;
    }

    public void setGcomment(int gcomment) {
        this.gcomment = gcomment;
    }

    @Basic
    @Column(name = "TEAMCATEGORY", nullable = true, length = 45)
    public String getTeamcategory() {
        return teamcategory;
    }

    public void setTeamcategory(String teamcategory) {
        this.teamcategory = teamcategory;
    }

    @Basic
    @Column(name = "TEAMCATEGORYID", nullable = true, length = 25)
    public String getTeamcategoryid() {
        return teamcategoryid;
    }

    public void setTeamcategoryid(String teamcategoryid) {
        this.teamcategoryid = teamcategoryid;
    }

    @Basic
    @Column(name = "RECOMMEND", nullable = true, length = 1)
    public String getRecommend() {
        return recommend;
    }

    public void setRecommend(String recommend) {
        this.recommend = recommend;
    }

    @Basic
    @Column(name = "FOLLOWUPREADING", nullable = true, length = 1)
    public String getFollowupreading() {
        return followupreading;
    }

    public void setFollowupreading(String followupreading) {
        this.followupreading = followupreading;
    }

    @Basic
    @Column(name = "FOLLOWUPRDID", nullable = true, length = 25)
    public String getFollowuprdid() {
        return followuprdid;
    }

    public void setFollowuprdid(String followuprdid) {
        this.followuprdid = followuprdid;
    }

    @Basic
    @Column(name = "MEMBERID", nullable = true, length = 25)
    public String getMemberid() {
        return memberid;
    }

    public void setMemberid(String memberid) {
        this.memberid = memberid;
    }

    @Basic
    @Column(name = "TEAMID", nullable = true, length = 25)
    public String getTeamid() {
        return teamid;
    }

    public void setTeamid(String teamid) {
        this.teamid = teamid;
    }

    @Basic
    @Column(name = "RDCATEGORYID", nullable = true, length = 25)
    public String getRdcategoryid() {
        return rdcategoryid;
    }

    public void setRdcategoryid(String rdcategoryid) {
        this.rdcategoryid = rdcategoryid;
    }

    @Basic
    @Column(name = "RDCATEGORYNAME", nullable = true, length = 45)
    public String getRdcategoryname() {
        return rdcategoryname;
    }

    public void setRdcategoryname(String rdcategoryname) {
        this.rdcategoryname = rdcategoryname;
    }
}
